<script language="javascript" type="text/javascript" src="/assets/My97DatePicker/jquery-1.8.2.js"></script>
<style>
    #ribbon{
        display:none;
    }
    body{
        background: none;
    }
</style>
<script>
    function coup_del(btn,id){
        var cid="{$cid}";
        $.ajax({
            type: "post",
            url: "/admin/coupon/coupon_save_del",
            data: {"id":id,"cid":cid},
            dataType: "json",
            success: function(data){
                if(data){
                    $(btn).parents().parents('.box12').remove();
                }else{
                    alert("删除失败");
                }
            }
        });

    }

</script>
<table  class="table table-striped table-bordered table-hover table-nowrap" data-operate-edit="1">
    <thead>
    <tr>
        <th style="text-align: center; vertical-align: middle;width:10%;" data-field="id"><div class="th-inner ">ID</div><div class="fht-cell"></div></th>
        <th style="text-align: center; vertical-align: middle;width:70%;" data-field="id"><div class="th-inner ">已选产品</div><div class="fht-cell"></div></th>
        <th style="text-align: center; vertical-align: middle;width:10%;" data-field="id"><div class="th-inner ">操作</div><div class="fht-cell"></div></th>
        </th>
    </tr>
    </thead>
        <tbody data-listidx="0">
        {volist name="list" id="vo"}
        <tr data-index="0" class="box12">
            <td style="text-align: center; vertical-align: middle; ">{$vo.id}</td>
            <td style="text-align: center; vertical-align: middle; ">{$vo.product_name}</td>
            <td style="text-align: center; vertical-align: middle; ">
                <span class="btn btn-danger btn-del btn-disabled del_product" onclick="coup_del(this,{$vo.id})">删除</span>
            </td>
        </tr>
        {/volist}

        </tbody>
</table>